package com.lsh.oms.core.common;

import org.jooq.SQLDialect;
import org.jooq.impl.DefaultDSLContext;
import org.springframework.context.annotation.Bean;

import javax.sql.DataSource;

public class Beans {

    @Bean
    public DefaultDSLContext defaultDSLContext(DataSource ds) {
        return new DefaultDSLContext(ds, SQLDialect.MYSQL);
    }
}
